package com.example.spareparts.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.spareparts.repository.SupplierEvaluationsRepository;
import com.example.spareparts.entity.SupplierEvaluations;
import java.util.List;

@Service
public class SupplierEvaluationsService {
    @Autowired
    private SupplierEvaluationsRepository supplierEvaluationsRepository;
    public List<SupplierEvaluations> findAllSupplierEvaluations()
    {
        return supplierEvaluationsRepository.findAllSupplierEvaluations();
    }
    public void insertSupplierEvaluations(SupplierEvaluations supplierEvaluations)
    {
        supplierEvaluationsRepository.insertSupplierEvaluations(supplierEvaluations);
    }
    public void updateSupplierEvaluations(SupplierEvaluations supplierEvaluations)
    {
        supplierEvaluationsRepository.updateSupplierEvaluations(supplierEvaluations);
    }
    public void deleteSupplierEvaluations(Long evaluationid)
    {
        supplierEvaluationsRepository.deleteSupplierEvaluations(evaluationid);
    }
    public SupplierEvaluations findSupplierEvaluationsById(Long evaluationid)
    {
        return supplierEvaluationsRepository.findSupplierEvaluationsById(evaluationid);
    }
    public List<SupplierEvaluations> findSupplierEvaluationsBySupplierId(Long supplierid)
    {
        return supplierEvaluationsRepository.findSupplierEvaluationsBySupplierId(supplierid);
    }
}
